import Vue from 'vue'
import Vuex from "vuex";
import App from './App.vue'
import router from './router'
import store from './store'
import vant from 'vant'
import 'vant/lib/index.css'
import {Swipe,SwipeItem,ActionSheet} from 'vant'
import { TreeSelect } from 'vant';
import { GoodsAction, GoodsActionIcon, GoodsActionButton,Dialog} from 'vant';
import { Tab, Tabs } from 'vant';
import { Popup } from 'vant';


Vue.use(Popup);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(vant)
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Vuex);
Vue.use(ActionSheet);
Vue.use(TreeSelect);
Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);
Vue.use(Dialog);

if(localStorage.userInfo){
  let userInfo=JSON.parse(localStorage.userInfo)
  store.commit('percen/handadd',userInfo)
}


Vue.config.productionTip = false

new Vue({
  router,
  store,
  vant,
  render: h => h(App)
}).$mount('#app')
